#import <UIKit/UIKit.h>
#import "ZLTextHighlight.h"

NS_ASSUME_NONNULL_BEGIN

@interface ZLLabel : UIView

/// 文本内容
@property (nonatomic, copy) NSAttributedString *attributedText;

/// 文本对齐方式
@property (nonatomic, assign) NSTextAlignment textAlignment;

/// 行数限制（0表示不限制）
@property (nonatomic, assign) NSInteger numberOfLines;

/// 添加高亮文本
- (void)addHighlight:(ZLTextHighlight *)highlight;

/// 添加可点击的文本
- (void)addLinkForText:(NSString *)text withAction:(void(^)(void))action;

/// 移除所有高亮文本
- (void)removeAllHighlights;

@end

NS_ASSUME_NONNULL_END 